<form action="" class="form-horizontal" role="form">
  <div class="form-group">
      <label class="col-sm-2 control-label">客户姓名</label>
      <div class="col-sm-2">
        <input type="text" class="form-control" name="name" placeholder="请填写客户单位名称" datatype="*2-20" />
      </div>
  </div>

    <div class="form-group">
      <label class="col-sm-2 control-label">客户邮箱</label>
      <div class="col-sm-3">
        <input type="email" class="form-control" name="email" placeholder="作为客户登陆后台账户" datatype="e" />
      </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">客户联系人</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="contacts" placeholder="作为客户登陆后台账户" datatype="*" />
    </div>
  </div>
  
  <div class="form-group">
    <label class="col-sm-2 control-label">联系人电话</label>
    <div class="col-sm-2">
      <input type="text" class="form-control" name="tel" placeholder="填写电话或者手机" datatype="phone" />
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">登录密码</label>
    <div class="col-sm-3">
      <input type="password" class="form-control" name="password" placeholder="密码大于6位小于16位" datatype="*6-16" />
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">重复登录密码</label>
    <div class="col-sm-3">
      <input type="password" class="form-control" placeholder="重复刚才输入的密码" datatype="*" recheck="password" />
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-8">
    <input type="hidden" name="cid" value="{$customerAdmin.cid}" />
      <button type="submit" class="btn btn-primary submit" data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/save">保存更改</button>
    </div>
  </div>
</form>


<!-- datetimepicker -->
<link rel="stylesheet" href="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.min.css">
<script src="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="__PUBLIC__/Style/Common/datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript">
  $(function(){
    $("#province").change(function(){
      var pro = $(this).val()
      var url="{:U('Customer/getCityPost')}";
   
      $.post(url, {code: pro} ,function(data){
        $("#city").html(data);
      });
    });
    
    $("#city").change(function(){
      var cit = $(this).val()
       var url="{:U('Customer/getAreaPost')}";
      $.post(url, {code: cit} ,function(data){
        $("#area").html(data);
      });
    });
    
    $("#start-time").datetimepicker({"language": "zh-CN"});
    $("#end-time").datetimepicker({"language": "zh-CN"});
  });
</script>